scrolledwindow: Fix indicator hiding
authorTimm Bäder <mail@baedert.org>
Sat, 17 Jun 2017 06:08:18 +0000 (08:08 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:14 +0000 (21:27 -0400)
Only hiding the indicator if the widget is not mapped won't work.

gtk/gtkscrolledwindow.c

index 1481fea6f50ff853bf7c1efeb978327a41188440..a9c13039dadb2d9850772f050751aa223ffdc8cf 100644 (file)
@@ -3755,7 +3755,7 @@ indicator_set_fade (Indicator *indicator,
 
   visible = indicator->current_pos != 0.0 || indicator->target_pos != 0.0;
 
-  if (visible && !gtk_widget_get_mapped (indicator->scrollbar))
+  if (visible)
     {
       indicator->conceil_timer = g_timeout_add (INDICATOR_FADE_OUT_TIME, maybe_hide_indicator, indicator);
     }
@@ -3769,7 +3769,6 @@ indicator_set_fade (Indicator *indicator,
   if (changed)
     {
       gtk_widget_set_opacity (indicator->scrollbar, indicator->current_pos);
-      gtk_widget_queue_draw (indicator->scrollbar);
     }
 }